# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DFAReporting.V34.Model.TagSetting do
  @moduledoc """
  Tag Settings

  ## Attributes

  *   `additionalKeyValues` (*type:* `String.t`, *default:* `nil`) - Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
  *   `includeClickThroughUrls` (*type:* `boolean()`, *default:* `nil`) - Whether static landing page URLs should be included in the tags. This setting applies only to placements.
  *   `includeClickTracking` (*type:* `boolean()`, *default:* `nil`) - Whether click-tracking string should be included in the tags.
  *   `keywordOption` (*type:* `String.t`, *default:* `nil`) - Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :additionalKeyValues => String.t() | nil,
          :includeClickThroughUrls => boolean() | nil,
          :includeClickTracking => boolean() | nil,
          :keywordOption => String.t() | nil
        }

  field(:additionalKeyValues)
  field(:includeClickThroughUrls)
  field(:includeClickTracking)
  field(:keywordOption)
end

defimpl Poison.Decoder, for: GoogleApi.DFAReporting.V34.Model.TagSetting do
  def decode(value, options) do
    GoogleApi.DFAReporting.V34.Model.TagSetting.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.DFAReporting.V34.Model.TagSetting do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
